﻿namespace Arms.Persistence.Modules.Common.Mappings
{
    using Arms.Domain.Modules;
    using System.Data.Entity.ModelConfiguration;

    internal class ContactMap : EntityTypeConfiguration<Contact>
    {
        public ContactMap()
            : base()
        {
            // Places mapped in PlaceMap()
            HasMany(x => x.People).WithOptional(x => x.Contact).HasForeignKey(x => x.ContactID);
        }
    }
}
